/*引入初始化代码*/
@import "util.less";

body {
    background-color: #f2f2f2;
}

#header {
    position: fixed;
    z-index: 999;
    background-color: #fff;
    top: 0;
    width: 100%;
    margin: 0 auto;
    display: flex;
    padding: 9px 10px;
    height: 44px;
    border-bottom: 1px solid @borderColor;
    .logo {
        width: 84px;
        line-height: 44px;
    }
    .search {
        flex: 1;
        position: relative;
        margin: 0px 10px 0px 20px;
        .fa-search {
            position: absolute;
            top: 6px;
            left: 6px;
            color: #c8c8c8;;
        }
        input {
            height: 26px;
            background-color: #f9f9f9;
            border-radius: 15px;
            width: 100%;
            padding-left: 25px;
        }
    }
    .download {
        width: 38px;
        height: 22px;
        border: 1px solid #f04848;
        border-radius: 11px;
        color: @mainColor;
        text-align: center;
        line-height: 20px;
        font-size: 12px;   
    }
}

#nav {
    position: fixed;
    z-index: 999;
    background-color: #fff;
    border-bottom: 1px solid @borderColor;
    top: 44px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    .swiper-wrapper {
        .swiper-slide {
            width: auto;
            li {
                float: left;
                &.active {
                    a {
                        color: @mainColor;
                        position: relative;
                        &::before {
                            position: absolute;
                            content: "";
                            width: 25px;
                            height: 4px;
                            background-color: @mainColor;
                            bottom: 0px;
                            left: 50%;
                            transform: translateX(-50%);
                        }
                    }
                }
                a {
                    display: block;
                    line-height: 40px;
                    padding: 0 12px;
                    color: @aColor;
                    font-size: 15px;
                    font-weight: bold;
                }

            }
        }
    }
}

#main {
    max-width: 960px;
    margin: 84px auto 0px;
    padding-top: 10px;
    #product {
        ul {
            li {
                background: #fff;
                border-bottom: 1px solid @borderColor;
                padding: 14px 8px;
                a {
                    display: flex;
                    .left {
                        width: 100px;
                        height: 100px;
                        img {
                            width: 100px;
                            height: 100px;
                        }
                    }
                    .right {
                        flex: 1;
                        line-height: 24px;
                        padding: 0px 10px;
                        height: 100px;
                        .title {
                            width: 100%;
                            min-height: 75px;
                           .price {
                               color: @mainColor;
                           }
                        }
                        .other {
                            width: 100%;
                            font-size: 12px;
                            color:#a1a1a1;
                           .fa-commenting-o {
                               float: right;
                               line-height: 24px;
                           } 
                        }
                    }    
                }
            }
        }
    }
    #page {
        width: 100%;
        display: flex;
        justify-content: space-around;
        padding: 20px;
        .prev,.next {
           display: block;
           padding: 0px 20px;
           height: 32px;
           line-height: 32px;
           background-image: linear-gradient(to bottom,(#f1f1f1),(#d4d4d4));
           border: 1px solid @borderColor;
            box-shadow: 0px 0px 1px @aColor;
           border-radius: 5px;
        }
        .pageNum {
            padding: 0px 20px;
            height: 32px;
            border: 1px solid @borderColor;
        }
    }
}


#footer {
    background-color: #efefef;
    .footerTop {
        .location {
            padding-left: 10px;
            line-height: 38px;
            background-image: linear-gradient(to bottom,(#fff),#efefef);
            border-top: 1px solid @footBorder;
            border-bottom: 1px solid @footBorder;
            a {
                color: #000;
            }
        }
        .navside {
            margin-top :25px;
            border-top: 1px solid @footBorder;
            border-bottom: 1px solid @footBorder;
            display: flex;
            justify-content: space-around;
            a {
                color: #000;
                line-height: 34px;
                text-align: center;
            }
            a:nth-child(n+2){
                border-left: 1px solid @footBorder;
            }
            .login {
                width: 30%;
    
            }
            .register {
                width: 30%;
    
            }
            .toTop {
                width: 40%;
                i {
                    color: @aColor;
                    font-size: 20px;
                }
            }
        }
    }
    .footerBottom {
        padding: 15px 0px;
        text-align: center;
        line-height: 16px;
        color: @aColor;
        font-size: 12px;
        .down {
            color: red;
        }
        .mmbuyWeb {
            color: #000;
        }  
    }
}